#include "Ortho.h"

Ortho::Ortho( float near, float far, float left, float right, float top, float bottom )
{
	this->near=near;
	this->far=far;
	this->left=left;
	this->right=right;
	this->top=top;
	this->bottom=bottom;
}

void Ortho::act()
{

	extern float xy_aspect,obj_pos[3],view_rotate[4];
	
	glMatrixMode( GL_PROJECTION );
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glLoadIdentity();
	glOrtho(left*xy_aspect,  right*xy_aspect,  bottom,  top,  near,  far);
	glMatrixMode( GL_MODELVIEW );
	glLoadIdentity();

	
}
